'''
Export CheckMark.svg, XMark.svg, and QuestMark.svg to standard
height:width ratios.  Not really complicated...

(c) 2007. SIL International All Rights Reserved.  
Tim Kellogg
'''

from os import system

def export(name, size, suffix=''):
    params = (name+suffix+'.png', size[0], size[1], name+'.svg')
    cmd = 'inkscape --export-png="%s" --export-width=%d --export-height=%d "%s"'%params
    system(cmd)
    
def doBigOnes(height, suffix=''):
    dx = float(height)/8
    export('CheckMark', (int(dx*5), height), suffix)
    export('XMark', (int(dx*7), height), suffix)
    export('QuestMark', (int(dx*5), height), suffix)
    

doBigOnes(40, '-mouseover')
doBigOnes(32)